any of a class of devices that convert electrical energy to mechanical energy, usually by employing electromagnetic phenomena.